package com.lxl.securitypermission.mapper;

import com.lxl.securitypermission.controller.vo.SimplePermissionVo;
import com.lxl.securitypermission.entity.SPermission;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author 绫小路
 * @date 2021/1/4 21:52
 * @description
 */
public interface SPermissionMapper {

  int deleteByPrimaryKey(Integer id);

  int insertSelective(SPermission record);

  SPermission selectByPrimaryKey(Integer id);

  int updateByPrimaryKeySelective(SPermission record);

  int updateByPrimaryKey(SPermission record);

  List<SPermission> getList(@Param("search") String search);

  int sw(@Param("id") Integer id, @Param("status") int status);

  List<SimplePermissionVo> getSimplePermissionVo(@Param("status") int status);
}
